import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listList(query) {
  return request({
    url: '/system/list/list',
    method: 'get',
    params: query
  })
}

//查询盒子商品列表
export function listBoxGoods(query) {
  return request({
    url: '/system/list/list',
    method: 'get',
    params: query
  })
}

//添加盒子商品
export function addBoxGoods(data) {
  return request({
    url: '/system/list',
    method: 'post',
    data: data
  })
}

// 查询【请填写功能名称】详细
export function getList(id) {
  return request({
    url: '/system/list/' + id,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addList(data) {
  return request({
    url: '/system/list',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateList(data) {
  return request({
    url: '/system/list',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delList(id) {
  return request({
    url: '/system/list/' + id,
    method: 'delete'
  })
}

//获取赏类型
export function getType(query) {
  return request({
    url: '/system/shang/list?pageNum=1&pageSize=50',
    method: 'get'

  })
}


//批量添加出奖区间
export function addRange(data) {
  return request({
    url: '/system/list/interval',
    method: 'post',
    data: data
  })
}


//批量移出出奖区间
export function delRange(data) {
  return request({
    url: '/system/list/deleteIntervalList',
    method: 'delete',
    data: data
  })
}


//出奖区间列表
export function addRangeList(data) {
  return request({
    url: '/system/list/showIntervalList',
    method: 'post',
    data: data
  })
}


//批量修改出奖区间
export function updateRange(data) {
  return request({
    url: '/system/list/showIntervalList',
    method: 'post',
    data: data
  })
}